package com.twenty.seven.demo.demo.service;

import com.twenty.seven.common.exception.CustomException;
import com.twenty.seven.entity.User;

/**
 * @Author 001
 * @Date 2020/1/8 16:29
 * @TODO
 **/
public interface UserService {
    /**
     * 保存User信息
     * @param user
     * @return
     * @throws CustomException
     */
    User save(User user);

    /**
     * 根据id查询User
     * @param id
     * @return
     * @throws CustomException
     */
    User queryUserById(long id) throws CustomException;

}
